package ooday03;

public class Student extends Person{
    int stuId;
    String className;
    Student(String name,int age,String address,int stuId,String className){
        super(name,age,address);
        this.stuId=stuId;
        this.className=className;
    }
    void sayHi(){
        super.sayHi();
        System.out.println("我的学号是"+stuId+"，我的班级是"+className);
    }
    void play(String playname){
        System.out.println(name+"在和"+playname+"玩");
    }
}

